package cn.growthgate.fgo.service.impl;

import cn.growthgate.fgo.entity.Item;
import cn.growthgate.fgo.entity.enums.ItemType;
import cn.growthgate.fgo.mapper.ItemMapper;
import cn.growthgate.fgo.service.IItemService;
import cn.growthgate.fgo.common.base.BaseServiceImpl;

import java.util.Arrays;
import java.util.List;

import org.springframework.stereotype.Service;

/**
 * <p>
 * 道具 服务实现类
 * </p>
 *
 * @author GrowthGate
 * @since 2019-05-13
 */
@Service
public class ItemServiceImpl extends BaseServiceImpl<ItemMapper, Item> implements IItemService {

	@Override
	public List<Item> selectStage() {
		return selectList(newWrapper().in("type", Arrays.asList(ItemType.MATERIAL, ItemType.PIECE, ItemType.ACTIVITY)));
	}

	@Override
	public List<Item> selectSkill() {
		return selectList(newWrapper().in("type", Arrays.asList(ItemType.MATERIAL, ItemType.BISCUITS)));
	}

}
